<div id="contentLogin">
    	<div class="postPublick dashBordBlock">
        	<div class="content">
                <table cellspacing="0" cellpadding="0" border="0" class="postPublickPanel">
                  <tbody><tr>
                    <td><%= link_to pic(@post.user_avatar), user_path(@post.user) %></td>
                    <td>
                       	Пишет <%= @post.user.name %> (<%= link_to @post.user.login, user_path(@post.user), :class=>"#{@post.user.user_css} link" %>)<br/>
                        <div class="date">@ <span><%= @post.created_at.strftime("%d.%m.%Y %H:%M") %></div>
                        <div style="padding-top: 10px; color: rgb(244, 128, 0);">

                            <%= link_to("предыдущая запись", user_post_path(@user, @prev_post)) + " | " unless @prev_post.nil?%>
                            
							<%= link_to("следующая запись", user_post_path(@user, @next_post)) + " | " unless @next_post.nil? %>
                            <% if logged_in? %>
                            	<%= link_to "добавить в избранное", new_user_feature_path(current_user, :featureable_type=>@post.class.to_s, :featureable_id=>@post.id) %> | <%= link_to "редактировать запись", edit_user_post_path(@post.user, @post) if current_user.admin? || current_user == @post.user %>
                            <% end %>
                        </div>
                    </td>
                  </tr>
                </tbody></table>
                <div style="clear: both; padding-top: 50px;">
                <table cellspacing="0" cellpadding="0" border="0" class="postPublickSubPanel">
                  <tbody><tr>
                    <td><strong>Настроение:</strong></td>
                    <td><%= @post.mood %></td>
                   </tr>
                  <tr>
                    <td>
                        <strong>Музыка:</strong>
                    </td>
                    <td><%= @post.music %></td>
                   </tr>
                  <tr>
                    <td>
                        <strong>Метки данной записи:</strong>
                    </td>
                    <td>
                        <% @post.tag_list.each do |tag| %>
                        	<%= link_to tag, tag_users_path(:id=>tag) %>
                        <% end %>
                    </td>
                   </tr>
                 </tbody></table>
                 </div>
                <div class="cont">
                    <strong class="title"><%= @post.title unless @post[:title].blank? %></strong>
										<%= Hpricot(@post.content_html).to_html %>                    
                 </div>
                <div class="addComment">
            <div style="padding: 5px 0px 25px;" class="addCommentButton"><a href="#comment-form" onclick="$('div-comment-form').show()" >Добавить коментарий</a></div>
            
            <% unless @comments.empty? %>
							<div class="gortalka" style="text-align:center;">
			          	<%=will_paginate(@comments)%>
			        </div>
			      <% end %>
            
						<%= render :partial=>"comments/comments", :locals=>{:record=>@post, :comments=>@comments} %>
						
						<% unless @comments.empty? %>
							<div class="gortalka" style="text-align:center;">
			          	<%=will_paginate(@comments)%>
			        </div>
			      <% end %>
            
            <% if @post.comments.size > 0 %>
	            <div style="padding: 25px 0px 5px;" class="addCommentButton"><a href="#comment-form" onclick="$('div-comment-form').show()">Добавить коментарий</a></div>
            <% end %>
            
            <%= render :partial=>"comments/form", :locals=>{:model=>@post} %>
        </div>
       		</div>
        </div>
    </div>
